﻿<Window x:Class="ActiveStory.UI.RenamePageDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Rename Page" Height="300" Width="416" SizeToContent="Height" IsEnabled="True" ResizeMode="NoResize" Icon="/ActiveStoryEnhanced;component/Content/icon.png" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="70" />
            <ColumnDefinition Width="70" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="30" />
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90" />
                <ColumnDefinition />
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="40"/>
            </Grid.ColumnDefinitions>
            <Label Grid.Row="0" Grid.Column="0">Current Name:</Label>
            <Label Name="CurrentNameValLabel" Grid.Row="0" Grid.Column="1"></Label>
            <Label Grid.Row="0" Grid.Column="2">Page Number:</Label>
            <Label Name="PageNumberValLabel" Grid.Row="0" Grid.Column="3"></Label>
            <Label Grid.Row="1" Grid.Column="0">New Name:</Label>
            <TextBox Name="NewNameTextBox" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding ElementName=CurrentNameValLabel,Path=Content,Mode=OneWay}" TabIndex="0"></TextBox>
        </Grid>
        <Button Grid.Row="1" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="70" Height="25" Name="OkButton" IsDefault="True" Click="OkButton_Click" TabIndex="1">OK</Button>
        <Button Grid.Row="1" Grid.Column="2" VerticalAlignment="Bottom" Height="25" Name="CancelButton" IsCancel="True" TabIndex="2">Cancel</Button>
    </Grid>
</Window>
